home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xaw / PrintSP.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  6KB  |  136 lines

  1. /* $Xorg: PrintSP.h,v 1.1 2003/07/11 19:46:06 gisburn Exp $ */
  2. /******************************************************************************
  3.  ******************************************************************************
  4.  **
  5.  ** (c) Copyright 2003 Danny Backx <danny.backx@skynet.be>
  6.  ** (c) Copyright 2003-2004 Roland Mainz <roland.mainz@nrubsig.org>
  7.  ** 
  8.  ** Permission is hereby granted, free of charge, to any person obtaining a copy
  9.  ** of this software and associated documentation files (the "Software"), to deal
  10.  ** in the Software without restriction, including without limitation the rights
  11.  ** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12.  ** copies of the Software, and to permit persons to whom the Software is
  13.  ** furnished to do so, subject to the following conditions:
  14.  **
  15.  ** The above copyright notice and this permission notice shall be included in
  16.  ** all copies or substantial portions of the Software.
  17.  **
  18.  ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19.  ** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20.  ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  21.  ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  22.  ** IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  23.  ** CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24.  **
  25.  ** Except as contained in this notice, the names of the copyright holders shall
  26.  ** not be used in advertising or otherwise to promote the sale, use or other
  27.  ** dealings in this Software without prior written authorization from said
  28.  ** copyright holders.
  29.  **
  30.  ******************************************************************************
  31.  *****************************************************************************/
  32.  
  33. #ifndef _XAW_PRINTSP_H
  34. #define _XAW_PRINTSP_H 1
  35.  
  36. #include <X11/CoreP.h>
  37. #include <X11/ShellP.h>
  38.  
  39. _XFUNCPROTOBEGIN
  40.  
  41. /* New fields for the XawPrintShell widget class record */
  42.  
  43. typedef struct {
  44.     XtPointer       extension;          /* pointer to extension record      */
  45. } XawPrintShellClassPart;
  46.  
  47. typedef struct XawPrintShellClassRec {
  48.     CoreClassPart              core_class;
  49.     CompositeClassPart         composite_class;
  50.     ShellClassPart             shell_class;
  51.     WMShellClassPart           wm_shell_class;
  52.     VendorShellClassPart       vendor_shell_class;
  53.     TopLevelShellClassPart     top_level_shell_class;
  54.     ApplicationShellClassPart  application_shell_class;
  55.     XawPrintShellClassPart     print_shell_class;
  56. } XawPrintShellClassRec;
  57.  
  58. extern XawPrintShellClassRec xawPrintShellClassRec;
  59.  
  60. /* New fields for the XawPrint shell widget */
  61.  
  62. typedef struct {
  63.     XtCallbackList               start_job_callback,
  64.                                  end_job_callback,
  65.                                  doc_setup_callback,
  66.                                  page_setup_callback;
  67.     XtEnum                       layoutmode; /* see XawPrintConfigureLayoutMode */
  68.     unsigned short               page_width,
  69.                                  page_height;
  70.     Dimension                    min_x,
  71.                                  min_y,
  72.                                  max_x,
  73.                                  max_y;
  74.     unsigned int                 curr_doc_num_in_job,  /* Current document number in job */
  75.                                  curr_page_num_in_doc, /* Current page number in doc */
  76.                                  curr_page_num_in_job; /* Current page number in job */
  77.     unsigned short               default_pixmap_resolution;
  78.     long                         print_resolution;
  79.     Boolean                      last_page_in_doc;
  80.     Boolean                      last_page_in_job;
  81. } XawPrintShellPart;
  82.  
  83. typedef struct XawPrintShellRec {
  84.     CorePart              core;
  85.     CompositePart         composite;
  86.     ShellPart             shell;
  87.     WMShellPart           wm;
  88.     VendorShellPart       vendor;
  89.     TopLevelShellPart     topLevel;
  90.     ApplicationShellPart  application;
  91.     XawPrintShellPart     print;
  92. } XawPrintShellRec;
  93. extern WidgetClass xawPrintShellWidgetClass;
  94.  
  95. #define PS_StartJobCallback(w) \
  96.     (((XawPrintShellWidget) (w))->print.start_job_callback)
  97. #define PS_EndJobCallback(w) \
  98.     (((XawPrintShellWidget) (w))->print.end_job_callback)
  99. #define PS_DocSetupCallback(w) \
  100.     (((XawPrintShellWidget) (w))->print.doc_setup_callback)
  101. #define PS_PageSetupCallback(w) \
  102.     (((XawPrintShellWidget) (w))->print.page_setup_callback)
  103. #define PS_LayoutMode(w) \
  104.     (((XawPrintShellWidget) (w))->print.layoutmode)
  105. #define PS_PageWidth(w) \
  106.     (((XawPrintShellWidget) (w))->print.page_width)
  107. #define PS_PageHeight(w) \
  108.     (((XawPrintShellWidget) (w))->print.page_height)
  109. #define PS_MinX(w) \
  110.     (((XawPrintShellWidget) (w))->print.min_x)
  111. #define PS_MinY(w) \
  112.     (((XawPrintShellWidget) (w))->print.min_y)
  113. #define PS_MaxX(w) \
  114.     (((XawPrintShellWidget) (w))->print.max_x)
  115. #define PS_MaxY(w) \
  116.     (((XawPrintShellWidget) (w))->print.max_y)
  117. #define PS_CurrDocNumInJob(w) \
  118.     (((XawPrintShellWidget) (w))->print.curr_doc_num_in_job)
  119. #define PS_CurrPageNumInDoc(w) \
  120.     (((XawPrintShellWidget) (w))->print.curr_page_num_in_doc)
  121. #define PS_CurrPageNumInJob(w) \
  122.     (((XawPrintShellWidget) (w))->print.curr_page_num_in_job)
  123. #define PS_DefaultPixmapResolution(w) \
  124.     (((XawPrintShellWidget) (w))->print.default_pixmap_resolution)
  125. #define PS_PrintResolution(w) \
  126.     (((XawPrintShellWidget) (w))->print.print_resolution)
  127. #define PS_LastPageInDoc(w) \
  128.     (((XawPrintShellWidget) (w))->print.last_page_in_doc)
  129. #define PS_LastPageInJob(w) \
  130.     (((XawPrintShellWidget) (w))->print.last_page_in_job)
  131.  
  132. _XFUNCPROTOEND
  133.  
  134. #endif /* !_XAW_PRINTSP_H */
  135.  
  136.